package com.itstudio.myforumsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itstudio.myforumsystem.entity.Collection;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CollectionMapper extends BaseMapper<Collection> {

    @Delete("delete from collection where userid=#{userid} and articleid=#{articleid}")
    void removeByUseridAndArticleId(Integer userid, Integer articleid);

}
